﻿using Markdig;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace EpubFactory.Robot.UI
{
    public partial class ReadmeForm : Form
    {
        public ReadmeForm()
        {
            InitializeComponent();
           
            LoadFile();
        }
        void LoadFile()
        {
            using (var stream = (Assembly.GetExecutingAssembly()).GetManifestResourceStream("EpubFactory.Robot.Help.readme.md"))
            {
                using (var reader = new StreamReader(stream))
                {
                    var txt = reader.ReadToEnd();
                    var html = Markdown.ToHtml(txt);
                    webBrowser1.DocumentText = html;
                }
            }
        }
    }
}
